<%@ include file="/inc/header.jsp" %>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr align="center">
    <th class="colored" colspan="6"><b>Liste des documents</b></th>
  </tr>
  <tr>
    <td colspan="6">&nbsp;</td>
  </tr>
<logic:present name="categoryForm" scope="request">
	<html:form action="/category.do">
	<html:hidden property="id" />
	<html:hidden property="parentId" />
	<html:hidden property="actionName" value="Modifier" />
  <tr>
    <td width="2%">&nbsp;</td>
    <td width="40%">&nbsp;
		<strong>Cat&eacute;gorie <bean:write name="categoryForm" property="fullname" /></strong>
    </td>
    <td width="26%">&nbsp;</td>
    <td width="30%">&nbsp;</td>
    <td width="1%" align="center">
	    <html:image property="" value="" src="images/edit.gif" alt="Modifier" onclick="updateActionName(this, 'Modifier')" />
	</td>
    <td width="1%" align="center">
		<html:image property="" value="" src="images/remove.gif" alt="Supprimer" onclick="updateActionName(this, 'PrepareRemove')" />
	</td>
  </tr>
	</html:form>
</logic:present>
</table>

<%@ include file="showelements.jsp" %>

<div align="center">
    <html:button property="foo" value="Ajouter" styleClass="button" onclick="location.href = 'element.do?actionName=PrepareAdd'" />
	<logic:present name="categoryForm" scope="request">
	    <input type="button" name="searchFiles" value="Synchroniser ave le r&eacute;pertoire" class="button"
	    	onclick="location.href = 'syncWithFileSystem.do?actionName=SearchFiles&id=<bean:write name="categoryForm" property="id" />'" />
	</logic:present>
</div>

<%@ include file="/inc/footer.jsp" %>
